package com.four.basicinfo.service.impl;

import com.four.basicinfo.dao.CriminalResponsibilityDao;
import com.four.basicinfo.entity.CriminalResponsibility;
import com.four.basicinfo.service.AbroadService;
import com.four.basicinfo.service.CriminalResponsibilityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CriminalResponsibilityServiceImpl implements CriminalResponsibilityService {
    @Autowired
    CriminalResponsibilityDao criminalResponsibilityMapper;
    /**
     * 查询刑事责任
     *
     * @param id 刑事责任主键
     * @return 刑事责任
     */
    @Override
    public CriminalResponsibility selectCriminalResponsibilityById(Long id)
    {
        return criminalResponsibilityMapper.selectCriminalResponsibilityById(id);
    }
    /**
     * 新增刑事责任
     *
     * @param criminalResponsibility 刑事责任
     * @return 结果
     */
    @Override
    public int insertCriminalResponsibility(CriminalResponsibility criminalResponsibility)
    {
        return criminalResponsibilityMapper.insertCriminalResponsibility(criminalResponsibility);
    }

    /**
     * 修改刑事责任
     *
     * @param criminalResponsibility 刑事责任
     * @return 结果
     */
    @Override
    public int updateCriminalResponsibility(CriminalResponsibility criminalResponsibility)
    {
        return criminalResponsibilityMapper.updateCriminalResponsibility(criminalResponsibility);
    }
    /**
     * 删除刑事责任信息
     *
     * @param id 刑事责任主键
     * @return 结果
     */
    @Override
    public int deleteCriminalResponsibilityById(Long id)
    {
        return criminalResponsibilityMapper.deleteCriminalResponsibilityById(id);
    }
}
